home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / Fab Libraries / InitCursorBalloon.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-03  |  865 b   |  32 lines  |  [TEXT/MPS ]

  1. /*
  2. Copyright © 1993,1994 by Fabrizio Oddone
  3. ••• ••• ••• ••• ••• ••• ••• ••• ••• •••
  4. This source code is distributed as freeware: you can copy, exchange, modify this
  5. code as you wish. You may include this code in any kind of application: freeware,
  6. shareware, or commercial, provided that full credits are given.
  7. You may not sell or distribute this code for profit.
  8. */
  9.  
  10. #pragma load "MacDump"
  11.  
  12. #include    "InitCursorBalloon.h"
  13. #include    "CursorBalloon.h"
  14.  
  15. /* Initializes the manager; should be called after initializing QuickDraw, etc.
  16. should be put into the initialization segment of the application */
  17.  
  18. OSErr InitCursorBalloonManager(void)
  19. {
  20. register OSErr err = appMemFullErr;
  21.  
  22. mouseRgn = NewRgn();
  23. wideOpenRgn = NewRgn();
  24. if (mouseRgn && wideOpenRgn) {
  25.     ForceMouseMovedEvent();
  26.     SetRectRgn(wideOpenRgn, -32765, -32765, 32765, 32765);
  27.     err = noErr;
  28.     }
  29. return err;
  30. }
  31.  
  32.